Combined thermometer and calculator

ABSTRACT

This invention relates to a thermometry device which measures temperature using an electronic calculator system. The device includes a resistor whose resistance value varies depending upon temperature, an oscillator providing a wave-form oscillating at a frequency which is dependent upon temperature, a clock generator providing reference clock pulses and a counter for counting the clock pulses within a length of time as defined by the frequency of the waveform divided by a factor. Temperature-related information is obtained from the results of the counting.

BACKGROUND OF THE INVENTION

This invention relates to a thermometry device and more particularly to a thermometry device which embodies an electronic calculator system. A digital electronic thermometer commonly includes a thermistor as a thermometry resistor whose resistance value varies depending upon temperature.

As suggested in Japanese Patent Kokai No. 53-69685, corresponding to U.S. Pat. No. 4,150,573, another well known device includes a reference resistor and a thermometry device.

In the device of this patent an oscillator is provided whose oscillation frequency vaires in proportion or in inverse proportion to the value of the selected resistor, thus making resistance variations in the thermometry resistor substantially linearly proportional to temperature. Output pulses from the oscillator are counted within a predetermined limited period of time to restrain thermometry within a range covering from 35° to 45° C.

The temperature dependency of the resistance of the thermistor in the conventional device is inaccurate and does not have a linear relationship in a wide temperature range, thus requiring complex arithmetic logic processes.

In the case where the output pulses of the oscillator are counted within the limited period of time, additional hardware such as a counter is required and it is very difficult to set up the thermometry device with cost savings.

OBJECTS AND SUMMARY OF THE INVENTION

With the foregoing in mind, it is an object of the present invention to provide a thermometry device which may measure temperature in a wide range, may be constructed inexpensively with few parts, making use of an electronic calculator system.

According to a broadest aspect of the present invention, a thermometry device comprises an oscillator oscillating at a frequency which is dependent upon temperature, means for generating reference clock pulses, means responsive to said clock pulses for counting within a length of time as defined by the waveform divided, and means for obtaining temperature-related information from the results of counting by said counting means.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention and for further objects and advantages thereof, reference is now made to the following description taken in conjunction with the accompanying drawings, in which;

FIG. 1 is a circuit diagram of a thermometry device constructed according to an embodiment of the present invention;

FIG. 2 is a circuit diagram of an oscillator in FIG. 1 and its related circuits;

FIG. 3 is a circuit diagram of an alternate embodiment of the present invention;

FIG. 4 is a circuit diagram of an oscillator in FIG. 3 and its related circuits;

FIG. 5 is a circuit diagram of another alternate embodiment of the present invention;

FIG. 6 is a flow chart for an explaining operation of temperature detection;

FIG. 7 is a system block diagram of the logic system of the invention; and

FIG. 8(A)-FIG. 8(E) are waveform charts for an explanation of operation of the circuit of FIG. 7.

DETAILED DESCRIPTION OF INVENTION

Referring now to FIG. 1, there is illustrated a circuit diagram of an electronic calculator having thermometry means in accordance with an embodiment of the present invention.

This device comprises an oscillator (1) oscillating at different frequencies which are dependent upon either a value of a reference resistor R₀ or a value of a thermometry resistor (a thermistor and the like) R_(s) according to the position of a changing-over switch SW switchable between the reference resistor R₀ and the thermometry resistor R_(s). An arithmetic logic system 2 which can be used as an electronic calculator is comprised of one-chip LSI for the electronic calculator. The device includes a key matrix (3), and a digital display device 4, such as a LCD. The terminals Ki and Ko in FIG. 1 are interconnected in a well known manner through key matrix 3 to provide key identification. K₁ is a key input signal terminal, connected to an output of the oscillator. F_(c) is a control signal for controlling output of the oscillator and determines whether the output of the oscillator (1) is to be delivered to the key input signal terminal K₁ of the arithmetic logic system of the electronic calculator.

The oscillator and its related parts are illustrated in FIG. 2.

This oscillator is a multi vibrator using a C-MOS inverter. There is a condenser C, inverters I₁, I₂, and a three-state buffer BF. Buffer BF decides whether an output pulse of the oscillator is sent to the key input signal terminal K₁ by control signal F_(c).

For example, if the signal F_(c) is avaiable at a High level, an output at a High level appears at the terminal K₁ and an output of buffer BF shows high-impedance when the signal F_(c) is at a Low level. The changing-over switch SW for the resistor R₀ or R_(s) is electronically switched by a signal of the arithmetic logic system (2) of the electronic calculator.

A method of detection of temperature of an embodiment using the present invention will be discussed with reference to FIG. 1 and FIG. 2. To place the device into temperature measuring mode, the control signal F_(c) is held at a High level and the three-state buffer BF is turned on to provide the waveform of the oscillating signals to the terminal K₁. The switch SW is connected with a reference resistor R₀, and an oscillation waveform which is dependent upon oscillation time constant R·C is fed to the key input terminal K₁. The symbol R represents resistance generally and would be either the resistance of Ro or Rs depending on the position of switch SW and C is a constant dependent on the properties of oscillator 1. Where f₀ is the oscillation frequency and α is a ratio constant, the relation among f₀ and R₀ and C is given by following relation: ##EQU1## Therefore the period of oscillation T₀ of the oscillation waveform at K₁ is given by the following relation: ##EQU2## In order to determine the time T₀ in the arithmetic unit, a clock pulse t₀ and the signal at terminal K₁ are used and a register receives the count M₀.

The count M₀ is given by the following relation: ##EQU3##

As for relation (3), M₀ should be made a large value to some extent by creating a relation of T₀ >>t₀ to reduce error. According to the above expressions (1) or (2), the count M₀ and the reference resistor are correlated as the following relation: ##EQU4##

The changing-over switch SW is switched to thermometry resistor R_(s) and the number of counts M_(s) are calculated in the same way. ##EQU5##

The counts M₀ and M_(s) as in the relations (4) and (5) are divided through the arithmetic logic system (2) to evaluate M_(s) /M₀.

In order words:

    M.sub.s /M.sub.0 =R.sub.s /R.sub.0                         (6)

Since the relation (6) shows that M_(s) /M₀ is depending only upon the thermometry resistor R_(s), it is easy to convert the M_(s) /M₀ ratio to temperature as long as the temperature dependency of R_(s) is known.

For example, assuming that the thermometry resistor R_(s) is a thermistor, the relation between the value of the resistor R_(s) and the temperature P (in °C.) is given by the following relation: ##EQU6## where R₁ is the value of the resistor which is determined by P-P₁ and B is a constant of the thermistor.

From the relations (6) and (7), ##EQU7## The temperature P can be rewritten from the relation (8): ##EQU8## where R₀, R₁, B, P₁, are known constants.

Therefore, if M_(s) /M₀ is determined, the temperature P can be obtained from the arithmetic operation according to the above relation (9). It is easy to put into practice the arithmetic operation of the above relation (9) by means of the arithmetic logic system (2).

When the device of the invention is not in a temperature measuring mode, the oscillator output is not input at the terminal K₁, and the terminal K₁ may be used as a key input terminal.

With the above structure, because the output pulse of oscillator (1) is input as key signal input, it is possible to use an electronic computer, (for example, an electronic calculator) as part of the thermometry device. It is unnecessary to use such hardware as an exclusive counter. Moreover, because the arithmetic system of the electronic calculator may be used in performing calculation for temperature conversion, it is possible to execute the arithmetical operation for temperature conversion with high accuracy. The variation of the value of the thermometry resistor with temperature may show a curve.

Thus, according to an embodiment of this invention, as the key input terminal of an electronic calculator system is used for input of temperature-related information, construction of a device in accordance with the invention is simplified and the need for outside circuits is eliminated. The signal processing and the arithmetic process may be performed by the arithmetic system of the electronic calculator, so that the electronic calculator having the thermometer means may be implemented easily.

FIG. 3 is a circuit diagram of an alternate embodiment of the present invention. A key input terminal K₀, shown above K₁ terminal in FIG. 3, matrix to set up an exclusive input terminal K₀ for the oscillator. In this embodiment K₁ represents a terminal directly connected to the key matrix 3 instead of the oscillator 1. In this case, the number of the key input terminals increases by one. However, this has the advantage of eliminating the need for three-state buffer BF and the output control signal F_(c) for the oscillator, as shown by the circuit diagram of FIG. 4. There is no particular difference in the signal processing and arithmetic process as compared to the electronic calcuator system of FIG. 1.

FIG. 5 is a circuit diagram of still another embodiment of the present invention. This circuit comprises an oscillator inside the electronic calculator arithmetic system, minimizing expenditure for the circuit structure.

FIG. 6 is a flow chart for explaining temperature detection. The same reference numbers in FIG. 1 are used throughout FIG. 6 whenever possible. When F_(c) =1, the circuit is in the thermometry mode, when F_(c) =0, the circuit is in the electronic calculator mode. In the case SW=1, a reference resistor is connected. In the case SW=0, a thermometry resistor is connected. N₁ represents an optional step for setting F_(c) to select either the thermometry or calculator mode and steps n₄ and n₅ detect the beginning of an oscillation waveform. Steps n₆ -n₉ sample the oscillation waveform for a period, and count the sampled components. In this case, the count is fed to an X register when SW=1 and to a Y register when SW=0, as indicated in FIG. 6. A step n₁₁ calculates M_(s) /M₀ as in said relation (6). A step n₁₂ is to calculate P as in the above relation (9). In this manner the oscillation waveform is sampled and counts are made to calculate a ratio of frequency. It is therefore possible to evaluate the temperature. Therefore, this system achieves thermometry by the use of the electronic calculator system. The oscillation output which is dependent upon temperature, is connected with the key input terminal (common use or excessive use), the width of the oscillation frequency pulse may be counted by a key routine of the electronic calculator.

The temperature dependency of the resistance of the thermistor in the conventional device is inaccurate and does not show good linear relationship in a wide temperature range, thus requiring complex arithmetic logic processes. If these processes are used in the electronic calculator routine, it is possible to measure the temperature in a wide range without excessive ROM steps.

FIg. 7 is a block diagram for further explaining operation of the present invention. The invention comprises an oscillator OSC, a switch SW switchable between the reference resistor R₀ and the thermometry resistor R_(s), a divider DV dividing an oscillation waveform of the oscillator, a counter CO, a clock generator CG, a selective output gate G, registers R₁ and R₂, and a gate change-over signal SS.

FIG. 8(A)-8(E) are waveform charts for an explanation of operation of those blocks. FIG. 8(A) shows the oscillation waveform. When the change-over switch SW is connected to reference resistor R₀, it shows that a waveform of a frequency f₀ oscillating from oscillator OSC is divided into a low frequency waveform of period T₀ in divider DV. FIG. 8(B) shows a divided output waveform of period T_(s), indicating that a waveform is oscillated from the oscillator OSC and divided by DV when the change-over switch SW is connected to the thermometry resistor R_(s). FIG. 8(C) shows a reference clock pulse of period to oscillated from the clock generator CG. FIG. 8(D) shows the number of clock pulses counted when SW is switched to thermometry resistor R_(s), that is, the number of clock pulses within a length of time from the beginning of the oscillation waveform of FIG. 8(B) to the end of that waveform. FIG. 8(E) shows the number of clock pulses counted with the reference resistor R₀ connected, the number of pulses counted being fed to registers R₁ and R₂ , respectively. A value of temperature is calculated from a ratio of those numbers of pulses.

The way in which to count the oscillation waveform and to count the length of time (for example, a period of the divided waveform or a half period) as defined by the divided waveform is determined in accordance with the invention with regard to the reference clock pulses is especially suitable for the calculator system of the invention as compared to the conventional way of counting the output pulses from the oscillator within a given period of time, since the device can respond to the oscillation waveform in the same way that the calculator portion of the device reads key signals. It is already noted that the signal processing and the arithmetic processes may be performed by the arithmetic system of the electronic calculator. As the key input terminal of the electronic calculator system is used as the terminal for temperature measurement, simplification of circuits is assured and excess hardware is not required. 

I claim:
 1. A combined electronic thermometer and calculator device, comprising:an electronic calculator comprising key matrix input means, key signal input terminals for receiving key signals from said key matrix input means, logic means for performing arithmetic operations with data input via said input terminals, and display means for displaying the results of said arithmetic operations; said device further comprising:oscillating means for providing a first waveform signal at a first frequency dependent upon temperature; dividing means for dividing said first waveform signal for providing a second waveform signal of a second frequency for defining a first period of time dependent upon temperature; means for generating reference clock pulses at a third frequency which is greater than said second frequency; means for counting said reference clock pulses during said first period of time to obtain a first count; means for inputting a signal representing said first count of said clock pulses to said logic means; means for generating a third waveform signal for defining a second period of time which is independent of temperature; means for counting said reference clock pulses during said second period of time to obtain a second count; means for inputting a signal representing said second count to said logic means; said logic means comprising means for determining temperature based upon a ratio of said first and second counts; and means for displaying temperature in said display means of said calculator.
 2. The combined device of claim 1, comprising means for inputting said waveform signals representing said time periods to said calculator via at least one of said input terminals of said calculator.
 3. The combined device of claim 1 comprising a selected one of said input terminals for receiving said first waveform signal from said oscillating means, and control means for causing said selected input terminal to selectively receive said first waveform signal from said oscillation means or key signals from said key matrix input means. 